<template>
	<view class="content">
		<image style="width: 100%;" :src="src" mode="widthFix"></image>
		<view class="page">
			<view class="remark">
				<text class="title">图片标题:</text><text>{{title}}</text>
			</view>
			<view class="remark">
				<text class="title">图片说明:</text><text >{{content}}</text>
			</view>
			<view class="remark">
				<text>上 传 人:</text><text class="m-input">{{this.uploadsName}}</text>
			</view>
			<view class="remark">
				<text>文 件 名:</text><text class="m-input">{{this.fileName}}</text>
			</view>
			<view class="remark">
				<text>共享类型:</text><text class="m-input">{{this.fileNature}}</text>
			</view>
			<view class="remark">
				<text class="title">文件大小:</text><text class="m-input">{{this.size}}</text>
			</view>
			
		</view>
		
	</view>
</template>

<script>
	export default {
		data() {
			return {
				title : '',
				content:'',
				src:'',
				uploadsName:'',
				fileName:'',
				fileNature:'',
				size:''
			}
		},
		methods: {
			
		},
		onLoad(e) {
			var serverUrl=this.serverUrl;
				uni.request({
					url: serverUrl + 'app/findSysFileById?id='+e.fileid,
					method: 'GET',
					data: {},
					success: res => {
						var result=res.data;
						this.title=result.fileTitle;
						this.content=result.fileRemark?result.fileRemark:result.fileName;
						this.src=serverUrl+'sysFile/app/download?fileUuid='+result.fileUuid;
						this.uploadsName=result.uploadsName;
						this.fileName=result.fileName;
						this.size=result.fileSize;
						this.fileNature=result.fileNature.name;
					}
				});
			
		}
	}
</script>

<style>
	@import url("./imageDetail.css");
</style>
